package xyz.lxbq.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.lxbq.mapper.TClassMapper;
import xyz.lxbq.pojo.Student;
import xyz.lxbq.pojo.TClass;
import xyz.lxbq.service.TClassService;

import java.util.List;
import java.util.Map;

/**
 * @author XuHu
 * @version 1.0
 * @date 2020/10/17 20:57
 */
@Service
public class TClassServiceImpl implements TClassService {

    @Autowired
    TClassMapper tClassMapper;

    @Override
    public List<TClass> getAllClass() {
        return tClassMapper.getAllClass();
    }

    @Override
    public int addClassdata(TClass tClass) {
        return tClassMapper.addClassdata(tClass);
    }

    @Override
    public List<TClass> getPageClass(int pageStart, int pageSize) {
        return tClassMapper.getPageClass(pageStart,pageSize);
    }

    @Override
    public int selectcount() {
        return tClassMapper.selectcount();
    }

    @Override
    public int delclass(int id) {
        return tClassMapper.delclass(id);
    }


}
